package com.pokemon.web;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;

/**
 *
 * @author Branislav Paulis
 */
@UrlBinding("/security/{$event}/")
public class SecurityActionBean implements ActionBean {
    
    private ActionBeanContext context;
    
    @Override
    public void setContext(ActionBeanContext context) {
        this.context = context;
    }
 
    @Override
    public ActionBeanContext getContext() {
        return context;
    }
    
    public Resolution login() {
        return new ForwardResolution("/index.jsp");
    }
    
    public Resolution logout() {
        return new ForwardResolution("/index.jsp");
    }
}